<?php 
class cls_data_comment extends cls_data_base
{
	function add_comment($customerid, $productid, $productcomment, $imagepath)
	{
		$table_name = '`productcomment`';
		
		$current_time = date("Y-m-d H:i:s",time());
		$input = array(
				"CustomerID" => $customerid,
				"ProductID" => $productid,
				"ProductComment" => $productcomment,
				"ImagePath" => $imagepath,
				"CommentTime" => $current_time);
		$result = $this->db->insert($table_name, $input);
		
		return $result;
	}
}
?>